package com.lemo.schedule.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class ScheduleConfig {
	
	@Scheduled(cron = "0/1 * * * * ?")//每1秒1次
	public void scheduler() {
        System.err.println("定时任务--------------");
    }
}
